<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:h="http://java.sun.com/jsf/html">
	<head><title>IGNORED</title></head>
    <body>
		<ui:composition template="templates/layout.xhtml">
			<ui:define name="windowTitle">Daily Market | Login</ui:define>
			<ui:define name="content">
				<div id="content" class="graphic_bg">
					<h:form id="login_form">
						<div class="form-row header">Login</div>
						<div class="form-row">
							<h:outputLabel for="loginEmail" styleClass="form-row">Email:</h:outputLabel>
							<h:inputText id="loginEmail" value="#{authenticationBean.loginEmail}" required="true" requiredMessage="#{msgs.login_email_missing}" />
						</div>
						<h:message for="loginEmail" errorClass="form-message error" infoClass="form-message" fatalClass="form-message error" styleClass="form-message" warnClass="form-message warn" />
						<div class="form-row">
							<h:outputLabel for="loginPassword" styleClass="form-row">Password:</h:outputLabel>
							<h:inputSecret id="loginPassword" value="#{authenticationBean.loginPassword}" required="true" requiredMessage="#{msgs.login_password_missing}" />
						</div>
						<h:message for="loginPassword" errorClass="form-message error" infoClass="form-message" fatalClass="form-message error" styleClass="form-message" warnClass="form-message warn" />
						<div class="form-row submit">
							<h:commandLink id="loginSubmit" styleClass="image-button no-height" action="#{authenticationBean.doLogin}"><h:graphicImage library="images/icons/16" name="lock_open.png" alt="l" title="Login" styleClass="with-text" />Login</h:commandLink>
						</div>
						<h:messages globalOnly="true" styleClass="form-messages" fatalClass="form-messages error" errorClass="form-messages error" warnClass="form-messages warn" infoClass="form-messages" />
					</h:form>
				</div>
			</ui:define>
		</ui:composition>
	</body>
</html>
